#!/bin/bash
pdftops -paper A4 $1 - | psbook -s 64 | impose -v -scale $2 | tee temp.ps | psselect -o | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_odd_book.\1/g"`
psselect -e temp.ps | ps2pdf - `echo $1 | sed -e "s/\.\(\w*\)/_even_book.\1/g"`
rm temp.ps

